<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StoreShippingRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
			'shipping_amount'	=> 'bail|required',
			'average_amount'		=> 'bail|required',
			'start_amount'		    => 'bail|required',
        ];
    }
    
    public function messages()
	{
		return [
			'shipping_amount.required'	=> '请填写配送价',
			'average_amount.required'		    => '请填写人均消费额',
            'start_amount.required'		    => '请填写起送价'
		];
	}
}
